Skip to content

Support native tuple arrays across Ny and Matrix - #11

Merged
bytetroll merged 3 commits into
masterfrom
codex/native-tuple-arrays
Oct 26, 2026
Merged

bytetroll merged 3 commits into
masterfrom
codex/native-tuple-arrays

Conversation

@bytetroll

Copy link
Copy Markdown
Contributor

Arrays of structural tuples now execute through both the VM and native toolchain in Ny and Matrix. Indexed access, whole-element replacement, append, generic collection operations, range copies, and tuple-destructuring loops preserve the ordered tuple schema. Array loop expressions evaluate once.

The compiler rejects incompatible storage and function arguments before emitting output, including with type checking disabled. Raw NIL validation checks declared schemas, initialized fields, nominal identities, and typed pointer allocation bounds. Tuple-array out-of-bounds reads fail explicitly. Managed tuple handles retain nested references through growth and collection. Intrinsic enum results preserve concrete metadata, with compatibility for older annotated wrappers.

Clean SDK packaging also exposed a missing Aperture entry in the tool inventory. New packages include and validate the existing prototype; older nine-tool SDKs remain valid. Aperture keeps its separate preview version.

Validation on ecf8d911ba7405f0a442c57b7ef396f7e32c5add:

  • 467 CTests passed during a clean-source SDK build.
  • 960 installed SDK consumer executions passed using source and binary libraries.
  • A separate SDK copy outside the checkout passed 246 tuple, 214 tuple-array, and 126 raw NIL checks, with its manifest unchanged.
  • 100 VS Code extension unit tests and 77 real extension-host checks passed against the staged SDK.

Native arrays of records, enums, and nested arrays remain unsupported as direct element types. Tuple fields can contain supported nominal values and pointers; raw pointer ownership is unchanged. The VM still cannot prove pointer provenance beyond a matching live typed virtual address. These limits and the resolved friction points are recorded in F52.

@bytetroll
bytetroll marked this pull request as ready for review October 26, 2026 20:42
@bytetroll
bytetroll merged commit 3ae5cb8 into master Oct 26, 2026
6 checks passed
@bytetroll
bytetroll deleted the codex/native-tuple-arrays branch October 26, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant